<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/bootstrap/css/bootstrap.min.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css"/>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/jquery.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/js/shacha.js" ></script>
	</head>
	<style>
	a:hover {   
 
		text-decoration: none;   
	}   
	</style>
	<body  style="background:transparent;">
			
				<div class="pad-20" style="margin-top:-20px;">
				<div class="panel panel-default linear">
					<form class="form-horizontal m-t" id="commentForm" onsubmit="return checksubmit();" style="margin-left:29px;">
					<!-- <div class="form-group">
                                <label class="col-sm-1 control-label">收款银行账号：</label>
                                <div class="col-sm-3">
                                    <input id="bank_num" type="text" class="form-control" name="bank_num" value="<?=$set['bank_num']?>" required="" aria-required="true">
                                </div>	 
								<label class="col-sm-1 control-label" style="width:100px;">开户银行：</label>
                                <div class="col-sm-3">
                                    <input id="bank_name" type="text" class="form-control" name="bank_name" value="<?=$set['bank_name']?>" required="" aria-required="true">
                                </div>	 
                      </div>
					  
					  <div class="form-group">
                                <label class="col-sm-1 control-label" style="width:100px;">开户姓名：</label>
                                <div class="col-sm-3">
                                    <input id="bank_username" type="text" class="form-control" name="bank_username" value="<?=$set['bank_username']?>" required="" aria-required="true">
                                </div>	
								<label class="col-sm-1 control-label" style="width:100px;">支行信息：</label>
                                <div class="col-sm-3">
                                    <input id="bank_zhi" type="text" class="form-control" name="bank_zhi" value="<?=$set['bank_zhi']?>" required="" aria-required="true">
                                </div>									
                      </div> -->
							<!--<div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 100px;margin-left:-7px;">投资额度：</label>
                                <div class="col-sm-3">
                                    <input id="min_money" name="min_money" type="text" class="form-control" value="<?=$set['min_money']?>" required="" aria-required="true">
                                </div>
                            
                                <label class="col-sm-1 control-label" style="margin-left: -50px;">元 至</label>
                                <div class="col-sm-2">
                                    <input id="max_money" type="text" class="form-control" name="max_money" value="<?=$set['max_money']?>" required="" aria-required="true">
                                </div>
								
								<label class="col-sm-1 control-label" style="margin-left: -30px;">元，且是</label>
                                <div class="col-sm-2">
                                    <input id="bei_money" type="text" class="form-control" name="bei_money" value="<?=$set['bei_money']?>" required="" aria-required="true">
                                </div>
								<label class="col-sm-1 control-label" style="margin-left: -30px;">的倍数</label>
                            </div>-->
                            <div class="form-group">
                                  <label class="col-sm-1 control-label">日分红：</label>
                                <div class="col-sm-3">
                                    <input id="rate" type="text" class="form-control" name="rate" value="<?=$set['rate']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                            </div>
                           <!--<div class="form-group">
                                  <label class="col-sm-1 control-label">直推奖：</label>
                                <div class="col-sm-3">
                                    <input id="zhitui" type="text" class="form-control" name="zhitui" value="<?=$set['zhitui']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                           </div>-->

                           <div class="form-group">
                                  <label class="col-sm-1 control-label">服务费：</label>
                                <div class="col-sm-3">
                                    <input id="service_charge" type="text" class="form-control" name="service_charge" value="<?=$set['service_charge']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                           </div>

                           <div class="form-group">
                                  <label class="col-sm-1 control-label">注册币：</label>
                                <div class="col-sm-3">
                                    <input id="register_coin" type="text" class="form-control" name="register_coin" value="<?=$set['register_coin']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>

								<label class="col-sm-1 control-label">报单币：</label>
                                <div class="col-sm-3">
                                    <input id="order_coin" type="text" class="form-control" name="order_coin" value="<?=$set['order_coin']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                           </div>

                           <div class="form-group">
                                  <label class="col-sm-1 control-label">现金钱包:</label>
                                <div class="col-sm-3">
                                    <input id="cash_percent" type="text" class="form-control" name="cash_percent" value="<?=$set['cash_percent']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>

								<label class="col-sm-1 control-label">报单钱包:</label>
                                <div class="col-sm-3">
                                    <input id="order_percent" type="text" class="form-control" name="order_percent" value="<?=$set['order_percent']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                           </div>

                           <div class="form-group">
                                <label class="col-sm-1 control-label">股权钱包:</label>
                                <div class="col-sm-3">
                                    <input id="stock_percent" type="text" class="form-control" name="stock_percent" value="<?=$set['stock_percent']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>

                          		<label class="col-sm-1 control-label">复投钱包:</label>
                                <div class="col-sm-3">
                                    <input id="re_cast_percent" type="text" class="form-control" name="re_cast_percent" value="<?=$set['re_cast_percent']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">（百分比%）</label>
                           </div>

						  <div class="form-group">
                                <label class="col-sm-1 control-label" style="width: 130px;margin-left:-35px;">美金起提：</label>
                                <div class="col-sm-3">
                                    <input id="zt_txmoney" name="zt_txmoney" type="text" class="form-control" value="<?=$set['zt_txmoney']?>" required="" aria-required="true">
                                </div>
								<label class="col-sm-1 control-label" style="margin-left: -30px;">元，且是</label>
                                <div class="col-sm-3">
                                    <input id="zt_txbei" type="text" class="form-control" name="zt_txbei" value="<?=$set['zt_txbei']?>" required="" aria-required="true">
                                </div>
								<label class="col-sm-1 control-label" style="margin-left: -30px;">的倍数</label>
                            </div>
							 <div class="form-group">
                                  <label class="col-sm-1 control-label">代理费：</label>
                                <div class="col-sm-3">
                                    <input id="agent_money" type="text" class="form-control" name="agent_money" value="<?=$set['agent_money']?>" required="" aria-required="true">
                                </div> 
								<label class="col-sm-1 control-label" style="margin-left: -50px;">元</label>
                           </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">提现时间：</label>
                                <div class="col-sm-3">
                                    <input id="txtime1" type="text" class="form-control" name="txtime1" value="<?=$set['txtime1']?>" required="" aria-required="true">
                                </div>

                                <label class="col-sm-1 control-label" style="margin-left: -50px;">号 至</label>
                                <div class="col-sm-3">
                                    <input id="txtime2" type="text" class="form-control" name="txtime2" value="<?=$set['txtime2']?>" required="" aria-required="true">
                                </div>
								 <label class="col-sm-1 control-label" style="margin-left: -35px;width: 170px;">号（每月的固定号）</label>
								 
                            </div>
							 <div class="form-group">
                                <label class="col-sm-1 control-label">红利提现条件：</label>
                                <div class="col-sm-3">
                                    <input id="txmoney" type="text" class="form-control" name="txmoney" value="<?=$set['txmoney']?>" required="" aria-required="true">
                                </div>

                                <label class="col-sm-1 control-label" style="margin-left: -30px;width: 120px;">元起，且是</label>
                                <div class="col-sm-3">
                                    <input id="txbei" type="text" class="form-control" name="txbei" value="<?=$set['txbei']?>" required="" aria-required="true">
                                </div>
								 <label class="col-sm-1 control-label" style="margin-left: -30px;">的倍数</label>
								 
                            </div>
							 
							<div class="form-group">
                                <label class="col-sm-1 control-label">网站状态：</label>
                                
                                    <input id="status" name="status" type="radio"  value="1" <?php if($set['status'] == 1){echo ("checked='checked'"); }?>style="margin-left: 10px;"><span style="margin-left:10px;">开</span>
									
									
                                    <input id="status" name="status" type="radio"  value="0" style="margin-left: 50px;"<?php if($set['status'] == 0){echo ("checked='checked'"); }?><span style="margin-left:10px;">关</span>	 
                               
                            </div>
							<div class="form-group">
                                <label class="col-sm-1 control-label" style="width:100px;">直接钱包：</label>
                                
                                    <input id="status" name="cash" type="radio"  value="1" <?php if($set['cash'] == 1){echo ("checked='checked'"); }?>style="margin-left: 10px;"><span style="margin-left:10px;">开</span>
                                    <input id="status" name="cash" type="radio"  value="0" style="margin-left: 50px;"<?php if($set['cash'] == 0){echo ("checked='checked'"); }?><span style="margin-left:10px;">关</span>	
									
									<label class="col-sm-1 control-label" style="margin-left:70px;position:absolute;width:100px;">季度钱包：</label>
                                
                                    <input id="status" name="half" type="radio"  value="1" <?php if($set['half'] == 1){echo ("checked='checked'"); }?>style="margin-left: 190px;"><span style="margin-left:10px;">开</span>
                                    <input id="status" name="half" type="radio"  value="0" style="margin-left: 50px;"<?php if($set['half'] == 0){echo ("checked='checked'"); }?><span style="margin-left:10px;">关</span>										
                            </div>
							<div class="form-group">
                                <label class="col-sm-1 control-label" style="width:100px;">半年钱包：</label>
                                
                                    <input id="status" name="year" type="radio"  value="1" <?php if($set['year'] == 1){echo ("checked='checked'"); }?>style="margin-left: 10px;"><span style="margin-left:10px;">开</span>
                                    <input id="status" name="year" type="radio"  value="0" style="margin-left: 50px;"<?php if($set['year'] == 0){echo ("checked='checked'"); }?><span style="margin-left:10px;">关</span>	
									
									<label class="col-sm-1 control-label" style="margin-left:70px;position:absolute;width:100px;">直推钱包：</label>
                                
                                    <input id="status" name="zhi" type="radio"  value="1" <?php if($set['zhi'] == 1){echo ("checked='checked'"); }?>style="margin-left: 190px;"><span style="margin-left:10px;">开</span>
                                    <input id="status" name="zhi" type="radio"  value="0" style="margin-left: 50px;"<?php if($set['zhi'] == 0){echo ("checked='checked'"); }?><span style="margin-left:10px;">关</span>										
                            </div>
							
							
							
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-1">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
			</div>
	
	</body>
</html>
<link href="__PUBLIC__/css/sweetalert/sweetalert.css" rel="stylesheet">
 <script src="__PUBLIC__/js/sweetalert/sweetalert.min.js"></script>
 <script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/jquery.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/js/shacha.js" ></script>
 <script>
 function checksubmit() {
		var formParam = $("#commentForm").serialize();//序列化表格内容为字符串
		//var formParam = new FormData($('#commentForm')[0]);//序列化表格内容为字符串
		/* return false; */
		$.ajax({
			type:'post',      
			url:'/Admin/Index/setting',
			data:formParam,  
			cache:false,
			dataType:'json',  
			/*processData: false,  
            contentType: false,*/
			success:function(data){
				alert(data.message);
				/*if (data.message == '配置成功') {
					swal("配置成功！", "", "success");
					
				} else {
					swal("配置失败！", "", "error");
				} */
			}
		});
		return false;
	}
 function is_yes(id) {
 
		swal({
			title: "您确定要通过这条信息吗",
			text: "审核后将无法恢复，请谨慎操作！",
			type: "warning",
			showCancelButton: true,
			confirmButtonColor: "#27c24c",
			confirmButtonText: "通过",
			closeOnConfirm: false
		},function() {
		//alert(id);
			$.ajax({
				type:'post',      
				url:'/Admin/Index/is_yes',
				data:{id:id},  
				cache:false,
				dataType:'json',  
				success:function(data){
				
					if (data.message == '操作成功！') {
						swal(data.message, "", "success");
						
					} else {
						swal(data.message, "", "error");
					}
					
				}
			});
			
		});
	}
	function del(id) {
		swal({
			title: "您确定要删除这条信息吗",
			text: "删除后将无法恢复，请谨慎操作！",
			type: "warning",
			showCancelButton: true,
			confirmButtonColor: "#DD6B55",
			confirmButtonText: "删除",
			closeOnConfirm: false
		}, function () {
			$.ajax({
				type:'post',      
				url:'/Admin/Index/invest_delete',
				data:{id:id},  
				cache:false,
				dataType:'json',  
				success:function(data){
					if (data.message == '操作成功！') {
						swal(data.message, "", "success");
						//window.location.reload();
					} else {
						swal(data.message, "", "error");
					}
				}
			});
			
		});
	}
 
 </script>
 
 
 
 
 
 
 
